package open3366pvp.as3.dataStruct
{
	import flash.utils.ByteArray;
	
	import open3366pvp.as3.Open3366PvpEvent;
	
	/**
	 * 断线重连的返回包信息 
	 * @author mandyxiong
	 * 
	 */	
	public class ReConnectProp implements IPvpInfo
	{
		public var uid:String; 
		public var gameId:int;
		public var zoneId:int;
		public var isDataReserved:int;//0表示用户数据被清楚 1标识用户数据还是被保留
		public var roomId:int;
		public var tableId:int;
		
		public function ReConnectProp()
		{
		}
		
		public function parasData(data:ByteArray):void
		{
			uid = data.readUTFBytes(32);
			gameId = data.readUnsignedInt();
			zoneId = data.readInt();
			isDataReserved = data.readInt();
		}
		
		public function get eventType():String
		{
			return Open3366PvpEvent.RE_CONNECT_SUCCESS;
		}
		
		public function toString():String
		{
			return "断线重连成功！！ \n uid:" + uid + ", gameId：" + gameId + ", zoneId：" + zoneId + ", isDataReserved：" + isDataReserved + "(0表示用户数据被清除，1表示用户数据被保留)";
		}
	}
}